package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 库位实体类
 *
 * @author 吴旭
 */
public class WareHouseLocationEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -461141884003382165L;
    private String LocationId;
    private String LocationNo;               // 库位编号
    private Long WareHouseId;                // 所属仓库
    private String WareHouseNo;              // 仓库编号
    private String WareHouseName;            // 仓库名
    private String Description;

    public String getLocationId() {
        return LocationId;
    }

    public void setLocationId(String LocationId) {
        this.LocationId = LocationId;
    }

    public String getLocationNo() {
        return LocationNo;
    }

    public void setLocationNo(String LocationNo) {
        this.LocationNo = LocationNo;
    }

    public Long getWareHouseId() {
        return WareHouseId;
    }

    public String getWareHouseNo() {
        return WareHouseNo;
    }

    public String getWareHouseName() {
        return WareHouseName;
    }

    public String getDescription() {
        return Description;
    }

    public void setWareHouseId(Long WareHouseId) {
        this.WareHouseId = WareHouseId;
    }

    public void setWareHouseNo(String WareHouseNo) {
        this.WareHouseNo = WareHouseNo;
    }

    public void setWareHouseName(String WareHouseName) {
        this.WareHouseName = WareHouseName;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof WareHouseLocationEntity)) {
            return false;
        }

        final WareHouseLocationEntity that = (WareHouseLocationEntity) o;

        return new EqualsBuilder()
                .append(this.getLocationId(), that.getLocationId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLocationId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
